package software;

import java.util.Iterator;

import softdata.Pla_data;
import softdata.Pla_item;
import softdone.Pos_done;

public class Pos_post extends Pos_done{
	Pla_item pos_new_pla_item=new Pla_item();//板块
	private Iterator iterator;
	public void Pos_Read(int i){
		super.Pos_Read(i);	
	}
	
	public void Pos_New(){
		/*
		 * 函数功能： 发帖
		 */
		Pos_insert(Postdata.ID_Plates, Postdata.ID_User,Postdata.Title,Postdata.Content);
	}
	public int getNum_Plates()
	{
		/*
		 *  函数功能： 发帖时，选择板块下拉菜单 选项总数
		 */
		Pos_Pla_Read();
		iterator=Postplates.iterator();
		return Num_Pos_Plates;
	}
	public void NextItem(){
		if(iterator.hasNext())
		pos_new_pla_item=(Pla_item)iterator.next();
	}
	public int getID_Pos_New_Plates(){
		return pos_new_pla_item.ID;
	}
	public String getNam_Pos_New_Plates(){
		return pos_new_pla_item.Nam_Plate;
		
	}
	
	public void Pos_Change(){
		/*
		 * 	函数功能：帖子修改
		 */
		Pos_edit(Postdata.ID_Post,Postdata.ID_Plates,Postdata.Title,Postdata.Content);
	}
	/*
	 * 个人中心读取最新用户帖子
	 */
	
	public int getIntege(){
		return Postdata.Integral;
	}
	public String getPhoto(){
		return Postdata.PhoSrc;
	}
	public int getID_Plates(){
		return Postdata.ID_Plates;
	}
	public void setID_Plates(int s){
		Postdata.ID_Plates=s;
	}
	
	public int getID_Post(){
		return Postdata.ID_Post;
	}
	public void setID_Post(int s){
		Postdata.ID_Post=s;
	}
	
	public int getID_User(){
		return Postdata.ID_User;
	}
	public void setID_User(int s){
		Postdata.ID_User=s;
	}
	public String getTim_Post(){
		return Postdata.Tim_Post;
	}
	public void setTim_Post(String s){
		Postdata.Tim_Post=s;
	}
	public String getName_Plates(){
		return Postdata.Name_Plates;
	}
	public void setName_Plates(String s){
		Postdata.Name_Plates=s;
	}
	public String getName_User(){
		return Postdata.Name_User;
	}
	public void setName_User(String s){
		Postdata.Name_User=s;
	}
	public String getTitle(){
		return Postdata.Title;
	}
	public void setTitle(String s){
		Postdata.Title=s;
	}
	public String getContent(){
		return Postdata.Content;
	}
	public void setContent(String s){
		Postdata.Content=s;
	}
	public int getNum_Reply(){
		return Postdata.Num_Reply;
	}
	public void setNum_Reply(int s){
		Postdata.Num_Reply=s;
	}
	public int getNum_Clicks(){
		return Postdata.Num_Clicks;
	}
	public void setNum_Clicks(int s){
		Postdata.Num_Clicks=s;
	}
}